All Questions
64 questions
2votes
1answer
357views
Sorting visualizer using Java Swing
I programmed a little sorting visualizer a while back and I have been meaning to get some feedback on the overall implementation and on what I could do better to have cleaner code or a "best ...
2votes
2answers
154views
reddit-like GUI
I am not very familiar with Swing but am attempting to make a Reddit GUI. I've finally got everything to work as expected but I must admit, it's quite mundane and not very nice to look at. I want to ...
1vote
1answer
3kviews
Simple Connect Four Game With GUI added
I am trying to improve my coding skills in Java by taking existing code, studying it, and adding on to it. In this code example, I took code from Connect Four game in Java and edited it. The most ...
3votes
1answer
2kviews
Very simple Hangman game, with a Swing GUI added
I have just started learning basic Java. I would like to know what I can do to improve my coding habits in Java and how to code more efficiently. In this code example, I took code from Very simple ...
3votes
1answer
96views
Mortgage calculator with Swing for Helsinki MOOC
New to Java, just finished the Helsinki MOOC course. I programmed a basic mortgage calculator as my first solo project and while it works, I have a few questions about coding style: The listener and ...
2votes
0answers
107views
My first Java app: a calculator in Swing
I have created my first Java app. I am very familiar with C++ and thus without reading any books (just introduction, googling and IntelliJ auto-completion) I directly jumped into Java. So I made a ...
3votes
1answer
801views
Sorting an array of numbers in Java with an algorithm
This is pretty much one of my first programs that I have created in Java and I just wanted to ask if anyone sees some obvious errors or mistakes I made. The purpose of this program is to sort numbers ...
5votes
3answers
3kviews
Java Langton's Ant simulation
I have implemented a simulation which is called "Langton's Ant" with Java. Here is a short summary of basic rules: A ant is placed in a 2D matrix and looks to north, west, east or south. First, all ...
3votes
1answer
6kviews
Java Flappy Birds clone
I have implemented a little Flappy Bird clone with swing. I'm pretty new to Java, especially in graphic programming, so I'm really glad if someone an give me a feedback to my Code and maybe to ...
1vote
2answers
14kviews
Cookie Clicker in Java
This is my first graphical application I have made in my life (except HTML and Javascript-Applications, if that counts). It's a simple implementation of Cookie Clicker, the famous browser game. ...
1vote
1answer
230views
"Guess number" game Java Swing app
I have implemented a "Guess number game" using Swing. The idea is that the user enters a range and the program makes guesses of the number. This is the first time I'm implementing this kind of ...
4votes
2answers
2kviews
Swing application to compute the area and perimeter of shapes
I am a beginner programmer. How would you refactor this code to abide by good coding practices? As it stands the program has 4 classes and its aim is to compute the area and perimeter of a specific ...
5votes
2answers
2kviews
Pong game in Swing
I have made my version of the game pong in java. This is my first Java coding project. I was curious if my code adheres to good Java coding practices. Constructive criticism is appreciated. The main ...
1vote
4answers
97views
Form a [email protected] address, eliminating diacritics from a name
I'm an amateur programmer who just started learning programming, my school gave me an assignment to create code that reads a surname and lastname from an input dialog box and then to edit those name ...
1vote
2answers
1kviews
Battleship game - preliminary version
I created preliminary version of battleship game. For now it works that: The computer generates a new a board and our task is to find all ships. I emphasize that I didn't focus on looks. If anyone ...